# -*- coding: utf-8 -*-
# Copyright 2017 Jarvis (www.odoomod.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class AccountConfigSettings(models.TransientModel):
    _inherit = 'res.config.settings'

    group_post_after_approval = fields.Boolean(
        "凭证审核后才能记账", implied_group="odoo12_account.group_post_after_approval")
    group_same_user_approval = fields.Boolean(
        "制单人和审核人可为同一人", implied_group="odoo12_account.group_same_user_approval")

    table_diff_size = fields.Integer(
        "凭证至少显示行数", default=5, config_parameter='odoo12_account.table_diff_size')

